﻿<telerikWindow:RadWindow x:Class="Rio.Framework.Pages.ChildWindows.AlertListWindow"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                        xmlns:telerikWindow="http://schemas.telerik.com/2008/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                        xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
                        xmlns:Grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"  
                        xmlns:gridViewElements="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
                        MaxHeight="400"
                        Header="Alerte(s)" 
                        Width="600" Height="367" DialogResult="False">

    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition  Height="40"/>
            <RowDefinition  Height="*"/>

        </Grid.RowDefinitions>

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Grid.Row="0">
            <Button Name="buttonDelete" Width="117" Height="30" Click="buttonDelete_Click" Margin="5,0,10,0" /> 
        </StackPanel>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"  Grid.Row="0">
            <Button Name="buttonClose" Width="117" Height="30" Click="buttonClose_Click" Margin="5,0,10,0" />
        </StackPanel>
        <Grid:RadGridView x:Name="GridViewAlert"                             
                          SelectionMode="Extended" AutoGenerateColumns="False" CanUserDeleteRows="True" 
                          ShowGroupPanel="False" Grid.Row="1" IsFilteringAllowed="false" >
            <Grid:RadGridView.Columns>
                <!--<Grid:GridViewDataColumn   x:Name="ColId" Header="Id" IsReadOnly="True" IsVisible="False" DataMemberBinding="{Binding iId}" />-->
                <Grid:GridViewSelectColumn x:Name="ColSelection" MinWidth="100" MaxWidth="30">
                    <Grid:GridViewSelectColumn.Header>
                        <CheckBox x:Name="chkSelectAll" IsChecked="False" Checked="chkSelectAll_Checked" Unchecked="chkSelectAll_Unchecked" />
                    </Grid:GridViewSelectColumn.Header>
                </Grid:GridViewSelectColumn>
                <Grid:GridViewDataColumn UniqueName="AlertName" IsReadOnly="True" MinWidth="200" MaxWidth="200" DataMemberBinding="{Binding Name}" />
                <Grid:GridViewDataColumn UniqueName="AlertTo" IsReadOnly="True" MinWidth="200" MaxWidth="300" DataMemberBinding="{Binding GroupListName}" />
                <Grid:GridViewDataColumn UniqueName="AlertObject" IsReadOnly="True" MinWidth="200" MaxWidth="300" DataMemberBinding="{Binding Object}" />
                <Grid:GridViewDataColumn UniqueName="AlertDate" IsReadOnly="True" MinWidth="200" MaxWidth="100" DataMemberBinding="{Binding Date}" DataFormatString="{}{0:dd/MM/yyyy}" />
                <Grid:GridViewDataColumn UniqueName="AlertState" IsReadOnly="True" MinWidth="200" MaxWidth="100" DataMemberBinding="{Binding StatusName}" />
                
            </Grid:RadGridView.Columns>
        </Grid:RadGridView>
    </Grid>
</telerikWindow:RadWindow>